@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './sidebar.scss';
@import './table.scss';
@import './btn.scss';


body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #fff;
  zoom: 1;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  zoom: 1;
  box-sizing: border-box;
}

.h_100 {
  height: 100vh;
}

#app {
  height: 100%;
  zoom: 1;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 16px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}


// 美化滚动条
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  width: 6px;
  background: rgba(#101F1C, 0.1);
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(144,147,153,.5);
  background-clip: padding-box;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  transition: background-color .3s;
  cursor: pointer;
}

body {
  * {
    scrollbar-color:#0F3263 #9b9fa8;
    scrollbar-width:thin;
  }
}


.el-dialog__body{
  padding-top: 0;
  padding-bottom: 10px;
}

.table-operate-btn{
  width: auto;
  padding-left: 0;
  padding-right: 0;
}

// 页面搜索框
.m-main-header-search{
  margin-bottom: 16px;
  padding: 24px 24px 20px;
  background: #FFFFFF;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  &>.el-button{
    margin-bottom: 4px;
  }
  .el-date-editor{
    &.el-range-editor--small.el-input__inner{
      height: 36px;
      width: 280px;
      .el-range-separator{
        line-height: 26px;
      }
    }
  }
  &::after, &::before{
    display: none;
  }
  &.is-justify-space-between{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .el-form-item{
    margin-bottom: 8px;
    margin-right: 20px;
  }
}
.el-form.label-row{
  .el-form-item{
    height: auto;
    margin-bottom: 0;
    .el-select {
      width: 100%;
    }
  }
  .el-form-item__label{
    float: none;
    line-height: 20px;
    color: #343A40;
  }
  .el-form-item__content{
    margin-left: 0!important;
  }
}

.m-main-content-body{
  // margin-bottom: 16px;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  .contant-body-title{
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #343A40;
    margin-bottom: 16px;
  }
}


p{
  margin: 0;
  padding: 0;
}
.el-form-item, .el-form-item__content .el-input.el-input--small .el-input__inner{
  height: 36px;
  line-height: 34px;
}
// .el-input__inner{
//   height: 36px;
// }

.g-font-bold{
  font-weight: bold;
}

.g-absolute-center{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}


.content-wrap{
  background: #ffffff;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.mt-16{
  margin-bottom: 16px;
}


.el-dialog__header{
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #343A40;
}

.el-dialog{
  width: 480px;
}
// 删除弹框
.del-model{
  padding: 15px 15px 30px;
  .el-message-box__status{
    color: #E7746D;
  }
  　.el-message-box__content{
    margin: 5px 0 20px;
  }
  .el-message-box__btns {
    padding-top: 0;
    .el-button:nth-child(1) {

    }
    .el-button:nth-child(2) {
     background: #E7746D;
     border-color: #E7746D;
    }
  }

}
